import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      name: 'index',
      component: ()=>import('../views/index/index.vue')
    },
    {
      path: '/community',
      name: 'community',
      component: () => import('../views/community/index.vue')
    },
    {
      path: '/welfare',
      name: 'welfare',
      component: () => import('../views/welfare/index.vue')
    },
    {
      path: '/my',
      name: 'my',
      component: () => import('../views/my/index.vue')
    }
  ]
})

export default router
